package com.bwie.auth.feign;

import com.bwie.common.domain.pojo.User;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Gd
 * @package: com.bwie.auth.feign
 * @Project: zg5_goods
 * @Name: SystemFeignService
 * @Date: 2024/4/29 17:05
 */
@FeignClient("bwie-system")
public interface SystemFeignService {

    /**
     * 根据用户名查询用户信息
     * @param useName
     * @return
     */
    @GetMapping("findByName/{useName}")
    public Result<User> findByName(@PathVariable String useName);
}
